package com.erp.wallet.service;

import com.erp.wallet.domain.ErpSellerStoreWalletExpend;
import com.erp.wallet.domain.bo.ErpSellerStoreWalletExpendBo;
import com.erp.wallet.domain.vo.ErpSellerStoreWalletExpendVo;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.oldPage.TableDataInfo;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

/**
 * 用户钱包拓展Service接口
 *
 * @author erp
 * @date 2023-08-02
 */
public interface IErpSellerStoreWalletExpendService {

    /**
     * 查询用户钱包拓展
     */
    ErpSellerStoreWalletExpendVo queryById(Long id);

    /**
     * 查询用户钱包拓展列表
     */
    TableDataInfo<ErpSellerStoreWalletExpendVo> queryPageList(ErpSellerStoreWalletExpendBo bo, PageQuery pageQuery);

    /**
     * 查询用户钱包拓展列表
     */
    List<ErpSellerStoreWalletExpendVo> queryList(ErpSellerStoreWalletExpendBo bo);

    /**
     * 新增用户钱包拓展
     */
    Boolean insertByBo(ErpSellerStoreWalletExpendBo bo);

    /**
     * 修改用户钱包拓展
     */
    Boolean updateByBo(ErpSellerStoreWalletExpendBo bo);

    /**
     * 校验并批量删除用户钱包拓展信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取钱包拓展对象,或 初始化
     */
    ErpSellerStoreWalletExpend getWalletExpend(Long userId);

    /**
     * 修改测评金额
     */
    R<Object> updateAmount(Integer flowType, Integer expenseType, Integer payType
            , Long sellerId, BigDecimal money, String orderNo, String remark);
}
